ps2eps-mac

Section: User Commands (1)
Updated: Thu May 14 1992
Index Return to Main Contents
 

NAME

ps2eps-mac - converts arbitrary single page PostScript images to MacBinary EPS with PICT preview  

SYNOPSIS

ps2eps-mac [ -q | -batch ][ -8 | -24 ] [ -widen <n> | -widen unset ] [ -debug <level> ] [ -log <logfile> ] [ -d <directory> | -pipe | -exec <command> | -ftp <ip> ] file.ps  

DESCRIPTION

ps2eps-mac Version 1.0 takes an arbitrary PostScript file and creates an Encapsulated PostScript file in MacBinary format. This EPS file contains an embedded PICT resource which, when read by certain Mac programs (for example, MSWord5 and MacDraw Pro), will be displayed on the Mac screen, allowing for easy annotation of the image. When the output is printed, however, the PICT preview bitmap will be discarded and the actual, crisp PostScript will be sent to the printer instead.

By default, executing the command ps2eps-mac file.ps will produce a file named file.eps.bin. Transferred to a Mac via ftp (with "MacBinary" enabled on the Mac end and "binary" enabled on the UNIX end), the file will be re-named file.eps.

When converting to MacBinary format, the default file type and file creator are listed as EPSF and MSWD, respectively. This means that double-clicking on the file.eps Mac file will open the file with MSWord5. To change the default file type, set your EPSTYPE environment variable before running ps2eps-mac; to change the default file creator, set EPSCREATOR.  

OPTIONS

-batch
Do not prompt for approval when overwriting output or scratch files.
-q
Synonym for -batch
-8
-24
Generate 8 or 24 bit ( color ) preview image.
-widen <n>
Set the amount (in points) by which to widen the BoundingBox. If the input file already contains a BoundingBox, -widen is ignored and the original box is assumed to be correct. Default: 1 point.
-widen unset
Use a simpler method of calculating the BoundingBox. This disables several features including the ability to widen the BoundingBox, and the utilization of existing BoundingBox information. This option will avoid some kinds of errors.
-debug <level>
Set the level of debug messages, from 0 (none) to 5 (all). Default: 1.
-log <logfile>
Set the name of the logfile in which to place debug messages. Default: messages are sent to stderr.
 

OUTPUT PROCESSING FLAGS

These flags are mutually exclusive. If more than one is used, the last one specified on the command line is applied. Default: place output in the current directory. None of these options prevents the writing of scratch files to the current directory.
-ftp <ip>
Transfer output to specified ip address via ftp, then delete output. Assumes that no password is required to ftp ( see netrc(5) ) and issues commands to put NCSA telnet into macbinary mode.
-exec <command>
Execute <command> on output file, then delete output. Multi word commands must be quoted. Example -exec "sz -b"
-pipe
Send output macbinary to standard output. If a logfile name isn't given with the -log option, errors are sent to ps2eps-mac.log.
-d <directory>
Set the name of the directory in which to place the output file. "-d stdout" is equivalent to -pipe.
 

BUGS

At the default debug level (1) some errors which result in an EPS file with no preview image are not reported. Debug = 2 may be a better default.

Color images require a %%BoundingBox: line in the source file, and cannot be created with -widen unset, or any setting which causes pbmtoepsi to run. 24 bit images may be stripped to 8 bit by ppmtopict.

The ps2eps-mac script uses tr to translate line endings. This is bound to mess up any binary stuff in the source PostScript, such as included fonts. You could try editing the script and playing around with the translation options. If you find a foolproof way to do the line ending translation, please send mail to george@mech.seas.upenn.edu.  

AUTHOR

George Jefferson, george@mech.seas.upenn.edu


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
OUTPUT PROCESSING FLAGS
BUGS
AUTHOR

This document was created by man2html, using the manual pages.
Time: 08:14:53 GMT, December 31, 2022